//
//  WuLiuTableViewCell.m
//  DA_V
//
//  Created by 中亿世联前台 on 15/5/29.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "WuLiuTableViewCell.h"
#import "WuLiuView.h"
#import "InterFace.h"
#import "LogisticsModel.h"
@implementation WuLiuTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.wuliuView = [[[NSBundle mainBundle] loadNibNamed:@"GeRen_xibs" owner:self options:nil] objectAtIndex:11];
        self.wuliuView.frame = CGRectMake(10, 0, SCREEN_WIDTH-20, 60);
        [self.contentView addSubview:self.wuliuView];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
}

- (void)showWUliuViewData:(id)data{
    if ([[data class] isSubclassOfClass:[LogisticsModel class]]) {
        LogisticsModel *model = data;
        self.wuliuView.listNumber.text = [NSString stringWithFormat:@"%@",model.MasterOrderID];
        self.wuliuView.wuliuCompany.text = model.ExpressCompany;
        self.wuliuView.wuliuPrace.text = [NSString stringWithFormat:@"¥%@",model.ExpressFee];
        self.wuliuView.address.text = [NSString stringWithFormat:@"       收货地址:%@",model.AddressDetail];
    }
}
@end
